package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineOperationHistory = "online_operation_history"

func init() {
	var r = &OnlineOperationHistory{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineOperationHistory struct {
	OperationHistoryId int    `form:"operationHistoryId" column:"operation_history_id" primary:"true" modify:"false" json:"operationHistoryId"`
	StudentId          int    `form:"studentId" column:"student_id" modify:"true" json:"studentId"`
	TermId             int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	Operator           int    `json:"operator" form:"operator" column:"operator" modify:"true"`
	Action             int    `form:"action" column:"action" modify:"true" json:"action"`
	FromClassId        int    `json:"fromClassId" form:"fromClassId" column:"from_class_id" modify:"true"`
	FromClassName      string `json:"fromClassName" form:"fromClassName" column:"from_class_name" modify:"true"`
	ToClassId          int    `modify:"true" json:"toClassId" form:"toClassId" column:"to_class_id"`
	ToClassName        string `column:"to_class_name" modify:"true" json:"toClassName" form:"toClassName"`
	CourseId           int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	CourseName         string `modify:"true" json:"courseName" form:"courseName" column:"course_name"`
	Note               string `json:"note" form:"note" column:"note" modify:"true"`
	CreateTime         string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime         string `column:"update_time" modify:"false" json:"updateTime" form:"updateTime"`
}

func (r *OnlineOperationHistory) Name() string {
	return RecordNameOnlineOperationHistory
}
